package com.ruoyi.hospital.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 物资出库记录对象 materiel_outbound_record
 *
 * @author qichi
 * @date 2023-07-10
 */
public class MaterielOutboundRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物资id */
    @Excel(name = "物资id")
    private Long materielId;

    /** 物资编码 */
    @Excel(name = "物资编码")
    private String materielCode;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 客户手机号 */
    @Excel(name = "客户手机号")
    private String customerPhone;

    /** 申请出库员工id */
    @Excel(name = "申请出库员工id")
    private Long userId;

    /** 出库类型 0 处方取药、 1 零售 、2其他 */
    @Excel(name = "出库类型 0 处方取药、 1 零售 、2其他")
    private Integer outboundType;

    /** 出库状态 0 待出库、 1 已出库 、2、取消、 */
    @Excel(name = "出库状态 0 待出库、 1、已出库 、2、取消")
    private Integer outboundStatus;

    /** 取消原因 */
    @Excel(name = "取消原因")
    private String cancelReason;

    /** 处方id */
    @Excel(name = "处方id")
    private Long prescriptionId;

    /** 处方明细id */
    @Excel(name = "处方明细id")
    private Long prescriptionDetailId;


    /** 处方编号 */
    @Excel(name = "处方编号")
    private String prescriptionCode;

    /** 实际出库数量 */
    @Excel(name = "实际出库数量")
    private BigDecimal number;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaterielId(Long materielId)
    {
        this.materielId = materielId;
    }

    public Long getMaterielId()
    {
        return materielId;
    }
    public void setMaterielCode(String materielCode)
    {
        this.materielCode = materielCode;
    }

    public String getMaterielCode()
    {
        return materielCode;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setCustomerPhone(String customerPhone)
    {
        this.customerPhone = customerPhone;
    }

    public String getCustomerPhone()
    {
        return customerPhone;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOutboundType(Integer outboundType)
    {
        this.outboundType = outboundType;
    }

    public Integer getOutboundType()
    {
        return outboundType;
    }
    public void setOutboundStatus(Integer outboundStatus)
    {
        this.outboundStatus = outboundStatus;
    }

    public Integer getOutboundStatus()
    {
        return outboundStatus;
    }
    public void setCancelReason(String cancelReason)
    {
        this.cancelReason = cancelReason;
    }

    public String getCancelReason()
    {
        return cancelReason;
    }
    public void setPrescriptionId(Long prescriptionId)
    {
        this.prescriptionId = prescriptionId;
    }

    public Long getPrescriptionId()
    {
        return prescriptionId;
    }
    public void setPrescriptionCode(String prescriptionCode)
    {
        this.prescriptionCode = prescriptionCode;
    }

    public String getPrescriptionCode()
    {
        return prescriptionCode;
    }
    public void setNumber(BigDecimal number)
    {
        this.number = number;
    }

    public BigDecimal getNumber()
    {
        return number;
    }

    @Override
    public String toString() {
        return "MaterielOutboundRecord{" +
                "id=" + id +
                ", materielId=" + materielId +
                ", materielCode='" + materielCode + '\'' +
                ", customerId=" + customerId +
                ", customerPhone='" + customerPhone + '\'' +
                ", userId=" + userId +
                ", outboundType=" + outboundType +
                ", outboundStatus=" + outboundStatus +
                ", cancelReason='" + cancelReason + '\'' +
                ", prescriptionId=" + prescriptionId +
                ", prescriptionDetailId=" + prescriptionDetailId +
                ", prescriptionCode='" + prescriptionCode + '\'' +
                ", number=" + number +
                '}';
    }

    public Long getPrescriptionDetailId() {
        return prescriptionDetailId;
    }

    public void setPrescriptionDetailId(Long prescriptionDetailId) {
        this.prescriptionDetailId = prescriptionDetailId;
    }
}
